<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <title>客户管理 / 人员管理-导入人员信息</title>
  <link rel="stylesheet" href="../../../css/layui.css" media="all">
  <link rel="stylesheet" type="text/css" href="../../../css/common.css"/>
  <style>
  	.layui-form-item{margin-bottom: 10px;}
  	.layui-form-select dl{max-height: 187px;}
  	.layui-form-item .layui-input-inline{width: 460px !important;}
  	.aid-plan{color: #FF5722; padding: 10px 20px;}
  	.plan-tit{background: #5da5f1; border-radius: 5px; padding: 5px; color: #fff; margin-top: 5px;}
  	.layui-table, .layui-table-view{margin: 0 ;}
  	.bf-tit{color: #5da5f1; font-size: 16px; margin-bottom: 5px;}
  	.layui-container{width: 900px;}
  </style>
</head>
<body style="background: #fff;overflow:hidden ;" class="innerBody">
	
	<div class="layui-container" style="padding-top: 22px;">
		<div class="top-btn" style="margin-bottom: 15px;">
			<button type="button" class="layui-btn" id="test1">选择文件</button>
			<button type="button" class="layui-btn layui-btn-primary">下载模板</button>
		</div>
		<table id="layui-table" lay-filter="tableBox" class="layui-table"></table>
	</div>
</body>
<script src="../../../layui.all.js"></script>
<script src="../../../js/common.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
//主动加载jquery模块
layui.use(['jquery', 'layer','element','upload'], function(){
	var $ = layui.jquery //重点处
	,layer = layui.layer;
	var element = layui.element;
	var upload = layui.upload;
	table = layui.table;//表格，注意此处table必须是全局变量
	$(".treeDiv").height($('.body-right').height()-4);//树高度
	
	//补助成功表格
	table.render({
    elem: '#layui-table'
    ,url:'../../../tableJson.js'
    ,height:'full-125'
    ,id:'sucTable'
    ,cols: [[
      {field: 'pc', title: '学工号'}
      ,{field: 'name', title: '姓名'}
      ,{field: 'sbbm', title: '所在部门'}
	   ,{field: 'pc', title: '物理卡号'}
    ]]
 });
  upload.render({
     elem: '#test1'
     ,url: '/upload/' //改成您自己的上传接口
     ,accept: 'file' //普通文件
     ,done: function(res){
       layer.msg('上传成功');
       console.log(res);
     }
   });
 
 //确认发放
 $("#confirmBtn").click(function(){	
		var ix = parent.layer.confirm('确认发放？',{title:'温馨提示'},function(ix){
			 //do something
			parent.layer.msg('发放成功！', {
			  icon: 1,
			  time: 1500 //2秒关闭（如果不配置，默认是3秒）
			}, function(){
			  parent.layer.closeAll();
				$('#iframe',parent.document).attr('src', 'html/sub-mgt/wjbz/wjbz.html');
			});   
		  
		})
	});

});	
   
</script>
</html>